//
// CBloomEffect.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class CBloomEffect {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CBloomEffect(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CBloomEffect obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CBloomEffect(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CBloomEffect() {
    this(nel3dJNI.new_CBloomEffect(), true);
  }

  public void init(boolean initBloomEffect) {
    nel3dJNI.CBloomEffect_init(swigCPtr, this, initBloomEffect);
  }

  public void setDriver(UDriver driver) {
    nel3dJNI.CBloomEffect_setDriver(swigCPtr, this, UDriver.getCPtr(driver), driver);
  }

  public UDriver getDriver() {
    long cPtr = nel3dJNI.CBloomEffect_getDriver(swigCPtr, this);
    return (cPtr == 0) ? null : new UDriver(cPtr, false);
  }

  public void setScene(UScene scene) {
    nel3dJNI.CBloomEffect_setScene(swigCPtr, this, UScene.getCPtr(scene), scene);
  }

  public UScene getScene() {
    long cPtr = nel3dJNI.CBloomEffect_getScene(swigCPtr, this);
    return (cPtr == 0) ? null : new UScene(cPtr, false);
  }

  public void setSquareBloom(boolean squareBloom) {
    nel3dJNI.CBloomEffect_setSquareBloom(swigCPtr, this, squareBloom);
  }

  public boolean getSquareBloom() {
    return nel3dJNI.CBloomEffect_getSquareBloom(swigCPtr, this);
  }

  public void setDensityBloom(short densityBloom) {
    nel3dJNI.CBloomEffect_setDensityBloom(swigCPtr, this, densityBloom);
  }

  public short getDensityBloom() {
    return nel3dJNI.CBloomEffect_getDensityBloom(swigCPtr, this);
  }

  public void initBloom() {
    nel3dJNI.CBloomEffect_initBloom(swigCPtr, this);
  }

  public void endBloom() {
    nel3dJNI.CBloomEffect_endBloom(swigCPtr, this);
  }

  public void endInterfacesDisplayBloom() {
    nel3dJNI.CBloomEffect_endInterfacesDisplayBloom(swigCPtr, this);
  }

}
